import re

a = [1, -1, 2, 4, 2, 4, 5, 6, 8, 7, 10, 0, 5, 5, 7, 6, 8, 9, 0, 3]
print(a)


# a.sort(reverse=False)
# print(a)
# result_list = []
# for i in a:
#     if i not in result_list:
#         result_list.append(i)
# print(result_list)


# b = a
# b.pop(0)
# print(a)
# aaa = 'ccaaabbbaaabb'
# cc = re.match('aaa', aaa)
# bb = re.search('aaa', aaa).group()
# print(cc)
# print(bb)


def aaa():
    n = len(a)
    print(n)
    for i in range(0, n - 1):
        for j in range(0, n - 1 - i):
            if a[j] > a[j+1]:
                a[j], a[j + 1] = a[j + 1], a[j]
        print("new a:", a)
    print("new a:", a)


if __name__ == "__main__":
    aaa()
